
<%@page import="util.Utilities"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>후기 리스트</title>
</head>
<body>
<c:forEach items="${requestScope.list }" var="pdto">

<table border="1">
<tr>
<td width="100"><img src="/${initParam.context_root }/member_picture/${pdto.picture_filename}" width="100" ></td>
<td rowspan="4" width="700">${pdto.postScript_content }</td>
</tr>
<tr>
<td>${pdto.postScript_memberid}</td>
</tr>
<tr>
<td><%=Utilities.changeDayFormat("${pdto.postScript_writedate}") %></td>
</tr>
<tr>
<td><%-- 후기점수 : ${pdto.postScript_score } --%>
<c:choose>
	<c:when test="${pdto.postScript_score == 1}">
		<img src="/${initParam.context_root }/goldstar.jpg">
		<img src="/${initParam.context_root }/whitestar.png">
		<img src="/${initParam.context_root }/whitestar.png">
		<img src="/${initParam.context_root }/whitestar.png">
		<img src="/${initParam.context_root }/whitestar.png">	
	</c:when>
	<c:when test="${pdto.postScript_score == 2}">
		<img src="/${initParam.context_root }/goldstar.jpg">
		<img src="/${initParam.context_root }/goldstar.jpg">
		<img src="/${initParam.context_root }/whitestar.png">
		<img src="/${initParam.context_root }/whitestar.png">
		<img src="/${initParam.context_root }/whitestar.png">	
	</c:when>
	<c:when test="${pdto.postScript_score == 3}">
		<img src="/${initParam.context_root }/goldstar.jpg">
		<img src="/${initParam.context_root }/goldstar.jpg">
		<img src="/${initParam.context_root }/goldstar.jpg">
		<img src="/${initParam.context_root }/whitestar.png">
		<img src="/${initParam.context_root }/whitestar.png">	
	</c:when>
	<c:when test="${pdto.postScript_score == 4}">
		<img src="/${initParam.context_root }/goldstar.jpg">
		<img src="/${initParam.context_root }/goldstar.jpg">
		<img src="/${initParam.context_root }/goldstar.jpg">
		<img src="/${initParam.context_root }/goldstar.jpg">
		<img src="/${initParam.context_root }/whitestar.png">	
	</c:when>
	<c:when test="${pdto.postScript_score == 5}">
		<img src="/${initParam.context_root }/goldstar.jpg">
		<img src="/${initParam.context_root }/goldstar.jpg">
		<img src="/${initParam.context_root }/goldstar.jpg">
		<img src="/${initParam.context_root }/goldstar.jpg">
		<img src="/${initParam.context_root }/goldstar.jpg">	
	</c:when>
</c:choose>
</td>
</tr>
</table>
<a href="/${initParam.context_root }/delete.do?no=${pdto.postScript_no }">글삭제하기</a><br>
<a href="/${initParam.context_root }/modifyForm.do?no=${pdto.postScript_no }">수정하기</a><br>
</c:forEach>
<a href="postScriptWriteForm.do">후기 작성하기</a><br>
<a href="/${initParam.context_root }/getAllMemberList.do">리스트</a><br>
<a href="/${initParam.context_root }/getMemberList.do?postScript_memberid=${pdto.postScript_memberid}">현재 접속한 사용자의 후기 목록들을 보여준다</a>
<a href="/${initParam.context_root }/res/postScript/postScriptMain.jsp">메인페이지로이동</a>
</body>
</html>
